<div class="container">
	<div class="toolbar">
		<a href="{:url('add?pid=0')}" class="btn">添加</a>
		 
	</div>

<div class="table">
	<table>
		<thead>
			<tr>
				<th style="width: 60px;">编号</th>
				<th>标题</th>
				 
				<th style="width: 60px;">导航</th>
				
				<th style="width: 60px;">模型</th>
				<th style="width: 60px;">位置</th>
				<th style="width: 120px;" >操作</th>
			</tr>
		</thead>
		<tbody>
			{volist name="list" id="vo"}
			<tr>
				<td>{$vo['id']}</td>
				<td><a href="{$vo['url']}" target="_blank">{$vo['name']}</a></td>
				<td>{:dict_name($vo['nav_on'],1)}</td>
				<td>{:db_name('mode','id='.$vo['mid'])}</td>
				<td>{$vo['sort']}</td>
				<td style="text-align: right;">
					<a href="{:url('add?pid='.$vo['id'])}">添加</a>
					<a href="{:url('edit?id='.$vo['id'])}">编辑</a>
					<a href="{:url('dele?id='.$vo['id'])}" class="ajax">删除</a>
				</td>
			</tr>
			{if !empty($vo['_child'])}
			{volist name="$vo['_child']" id="vo_one"}
			<tr>
				<td>{$vo_one['id']}</td>
				<td ><a href="{$vo_one['url']}" target="_blank" style="text-indent: 2em;">{$vo_one['name']}</a></td>
				<td>{:dict_name($vo_one['nav_on'],1)}</td>
				<td>{:db_name('mode','id='.$vo_one['mid'])}</td>
				<td>{$vo_one['sort']}</td>
				<td style="text-align: right;">
				
					<a href="{:url('edit?id='.$vo_one['id'])}">编辑</a>
					<a href="{:url('dele?id='.$vo_one['id'])}" class="ajax">删除</a>
				</td>
			</tr>
			{/volist}
			{/if}
			{/volist}
		 </tbody>
	</table>
</div>

</div>